package com.hst.capacity.domain.model.entity.vehicle;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.hst.capacity.domain.model.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "vm_vehicle_profile")//车辆详情表
public class VehicleProfileEntity extends BaseEntity {

  @Id
//  @GeneratedValue(generator = "gen_uuid")
//  @GenericGenerator(name = "gen_uuid", strategy = "uuid")
  private String idVehicleProfile;
  private String idVehicle;
  private String plateColor;
  private String brand;
  private String type;
  private String model;
  private String owner;
  private String color;
  private String engine;
  private String vin;
  private String fuel;
  private Integer passengerCapacity;
  private LocalDateTime registerDate;
  private LocalDateTime issueDate;
  private String displacement;
  private String enginePower;
  private String wheelbase;
  private String province;
  private String city;
  private String district;
  private String address;
  private String vehicleLicenseNo;
  private String vehicleLicense;
  private String vehicleLicenseSub;
  private String vehiclePhoto;

//  @OneToOne(mappedBy = "profileEntity")
//  private VehicleEntity vehicleEntity;

}
